package com.dubbo.demo.consumer.action;


import com.alibaba.dubbo.config.annotation.Reference;
import com.dubbo.demo.provider.HelloService;
import org.springframework.stereotype.Component;

/**
 * Created by LCL on 2017/3/8.
 */
@Component
public class HelloConsumer {
    @Reference(version="1.0.0")
    private HelloService helloService;

    public String hello() {
        return helloService.hello("World");
    }
}
